#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    QSqlDatabase sql=QSqlDatabase::addDatabase("QSQLITE");
    sql.setDatabaseName("mydatabase.sqlite");
    QSqlTableModel model;
    QSqlTableModel modell;
    QSqlTableModel modelll;
    model.setTable("Sorokina");
    model.select();

    modell.setTable("Faculters");
    modell.select();

    modelll.setTable("gruppa");
    modelll.select();


w.box.addWidget(&w.first);
w.first.setModel(&model);

w.box.addWidget(&w.second);
w.second.setModel(&modell);

w.box.addWidget(&w.third);
w.third.setModel(&modelll);


w.wind.setLayout(&w.box);
w.setCentralWidget(&w.wind);



    w.show();
    
    return a.exec();
}
